﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ForumThreadsEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Forum.ForumThreadsEdit" %>
<owc:OwDetailsView ID="ForumThreadsEditDV" runat="server" EnableModelValidation="true"
    AutoGenerateRows="False" DataKeyNames="ForumThreadID" DataSourceID="OwForumThreadOds"
    OwNotificationID="">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfo" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>'
                            OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>' OwBindWardLocalityValue='<%# Bind("WardID")%>'
                            OwBindPortalValue='<%# Bind("PortalID") %>' OwBindNetworkValue='<%# Bind("NetworkID") %>'
                            OwBindLanguageValue='<%# Bind("LanguageCode") %>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabel" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="TitleLabel" />
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="OwTextBox" ID="txtTitle" runat="server" Width="680px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Title") %>' LabelWidth="">
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="ThreadIconOwR" runat="server" OwText="ThreadIconLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="OwThreadIconCbb" runat="server" DataSourceID="OwThreadIconOds"
                                        DataTextField="Name" DataValueField="ThreadIconID" AppendDataBoundItems="True"
                                        SelectedValue='<%# Bind("ThreadIconID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwThreadIconOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwForumThreadIconsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="networkID" Type="Int64" />
                                            <asp:Parameter Name="portalID" Type="Int64" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="CompanyOwR" runat="server" OwText="CompanyLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="CompanyCbb" runat="server" DataSourceID="OwCompanyOds"
                                        DataTextField="Name" DataValueField="CompanyID" AppendDataBoundItems="True" SelectedValue='<%# Bind("CompanyID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwCompanyOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwCompaniesBLL" 
                                        DataObjectTypeName="Micronet.OpenWeb.Entity.OwCompaniesEntity" 
                                        DeleteMethod="OwDelete" InsertMethod="OwInsert" UpdateMethod="OwUpdate">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter Name="code" Type="String" />
                                            <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                            <asp:Parameter Name="isHot" Type="Boolean" />
                                            <asp:Parameter Name="enableBegin" Type="DateTime" />
                                            <asp:Parameter Name="enableEnd" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="userID" DbType="Guid" />
                                            <asp:Parameter Name="isApproved" Type="Boolean" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter DbType="Guid" Name="creatingUser" />
                                            <asp:Parameter DbType="Guid" Name="editingUser" />
                                            <asp:Parameter DbType="Guid" Name="deletingUser" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="ForumOwR" runat="server" OwText="ForumLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="OwForumCbb" runat="server" DataSourceID="OwForumOds"
                                        DataTextField="Title" DataValueField="ForumID" AppendDataBoundItems="True" SelectedValue='<%# Bind("ForumID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwForumOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwForumsBLL" 
                                        DataObjectTypeName="Micronet.OpenWeb.Entity.OwForumsEntity" 
                                        DeleteMethod="OwDelete" InsertMethod="OwInsert" UpdateMethod="OwUpdate">
                                        <SelectParameters>
                                            <asp:Parameter DbType="Guid" Name="userID" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="continentID" Type="Int64" />
                                            <asp:Parameter Name="countryID" Type="Int64" />
                                            <asp:Parameter Name="provinceID" Type="Int64" />
                                            <asp:Parameter Name="districtID" Type="Int64" />
                                            <asp:Parameter Name="wardID" Type="Int64" />
                                            <asp:Parameter Name="categoryID" Type="Int64" />
                                            <asp:Parameter Name="companyID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="ForumCatagoryOwR" runat="server" OwText="ForumCatagoryLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="OwForumCatagoryCbb" runat="server" DataSourceID="OwForumCatagoryOds"
                                        DataTextField="Name" DataValueField="ForumCategoryID" AppendDataBoundItems="True"
                                        SelectedValue='<%# Bind("ForumCategoryID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwForumCatagoryOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwForumCategoriesBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="DetailOwR" runat="server" OwText="DetailLabel" OwSuffix=":" />
                                </td>
                                <td>
                                    <owc:OwEditor SkinID="OwEditorFull" ID="txtDetail" runat="server" OwStoragePlace="Common"
                                        Style="position: relative; top: 0px; left: 0px;" Content='<%# Bind("Detail") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="TagsOwR" runat="server" OwText="TagsLabel" OwSuffix=":" />
                                </td>
                                <td>
                                    <owc:OwEditor SkinID="OwEditorBrief" ID="txtTags" runat="server" OwStoragePlace="Common"
                                        Style="position: relative;" Content='<%# Bind("Tags") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span class="titleLegen">
                        <asp:Localize ID="Localize23" Text="<%$ OwR: ExtInfo %>" runat="server"></asp:Localize>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="CreatingUser" runat="server" OwText="CreatingUser" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtcreatingUser" runat="server" Enabled="False"
                                        Width="200px" OwUsedForEdit="False" Text='<%#Eval("CreatingUser")!=null? (Membership.GetUser(Eval("CreatingUser"))!=null?Membership.GetUser(Eval("CreatingUser")).UserName:"n/a"):"n/a"  %>'>
                                    </owc:OwTextBox>
                                    <owc:OwTextBox SkinID="owTextBox" OwDefaultValue='<%# Membership.GetUser()!=null ? Membership.GetUser().ProviderUserKey:"" %>'
                                        ID="CreatingUserLabel" Visible="false" runat="server" Text='<%# Bind("CreatingUser") %>' />
                                </td>
                                <td>
                                    <asp:Localize ID="Localize6" runat="server" Text="<%$ OwR:CreatedDate %>"></asp:Localize>
                                    &nbsp;:
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtCreatedDate" runat="server" Enabled="False"
                                        Width="200px" OwDefaultValue='<%$ Ow: DateTime.Now %>' OwUsedForEdit="True" Text='<%# Bind("DateTimeCreated") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <%--<tr>
                                <td class="leftcolumn">
                                    <asp:Localize ID="Localize12" Text="<%$ OwR:LastEditingUser %>" runat="server"></asp:Localize>
                                    :
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtlastEditingUser" runat="server" Enabled="False"
                                        Width="200px" OwUsedForEdit="False" Text='<%#Eval("EditingUser")!=null? (Membership.GetUser(Eval("EditingUser"))!=null?Membership.GetUser(Eval("EditingUser")).UserName:"n/a"):"n/a"   %>'>
                                    </owc:OwTextBox>
                                    <owc:OwTextBox SkinID="owTextBox" OwDefaultValue='<%# Eval("EditingUser")!=null? (Membership.GetUser(Eval("EditingUser"))!=null?Membership.GetUser(Eval("EditingUser")).ProviderUserKey:""):""    %>'
                                        ID="EditingUserLabel" Visible="false" runat="server" Text='<%# Bind("EditingUser") %>' />
                                </td>
                                <td>
                                    <asp:Localize ID="Localize14" runat="server" Text="<%$ OwR:LastEditedDate %>"></asp:Localize>
                                    :
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtlastEditedDate" runat="server" Enabled="False"
                                        Width="200px" OwDefaultValue='<%$ Ow: DateTime.Now %>' OwUsedForEdit="False"
                                        Text='<%# Bind("DateTimeEdited") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>--%>
                            <%--<tr>
                                <td class="leftcolumn">
                                    <asp:Localize ID="Localize16" Text="<%$ OwR:DeletingUser %>" runat="server"></asp:Localize>
                                    :
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtdeletingUser" runat="server" Enabled="False"
                                        Width="200px" OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("DeletingUser") %>'>
                                    </owc:OwTextBox>
                                </td>
                                <td>
                                    <asp:Localize ID="Localize17" runat="server" Text="<%$ OwR:DeletedDate %>"></asp:Localize>
                                    :
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtdeletedDate" runat="server" Enabled="False"
                                        Width="200px" OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("DateTimeDeleted") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>--%>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span class="titleLegen">
                        <asp:Localize ID="Localize15" Text="<%$ OwR:OptionLabel %>" runat="server"></asp:Localize>
                    </span></legend>
                    <div class="contentLegen">
                        <table width="100%">
                            <tr>
                                <td>
                                    <fieldset class="fsStandard">
                                        <legend>
                                            <owc:OwR ID="EnableOwR" runat="server" OwText="EnableLabel"></owc:OwR>
                                        </legend>
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsEnabledOwR" runat="server" OwText="IsEnabledLabel"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="IsEnabledCb" Checked='<%# Bind("IsEnabled") %>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="FromDateOwR" runat="server" OwText="FromDate" OwSuffix=":" />
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtEnableBegin" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("EnableBegin") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="ToDateOwR" runat="server" OwText="ToDate" OwSuffix=":" />
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtEnableEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("EnableEnd") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                            UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="dtEnableBegin"
                                                        ControlToValidate="dtEnableEnd" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                                        Operator="GreaterThan">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <legend>
                                            <owc:OwR ID="HomeDisplayOwR" runat="server" OwText="HomeDisplayLabel"></owc:OwR>
                                        </legend>
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsHomeDisplayOwR" runat="server" OwText="IsHomeDisplayLabel"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="cbIsHomeDisplay" Checked='<%# Bind("IsHomeDisplay") %>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal2" runat="server" Text="<%$ OwR:FromDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHomeDisplayBegin" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HomeDisplayBegin") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                            UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="dtEnableBegin"
                                                        ControlToValidate="dtIsHomeDisplayBegin" ErrorMessage="<%$ OwR:HomeDisplayBeginGreaterThanEqualEnableBegin %>"
                                                        Operator="GreaterThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal3" runat="server" Text="<%$ OwR:ToDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHomeDisplayEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HomeDisplayEnd") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                        OwUsedForEdit="False">
                                                        <ClientEvents OnDateSelected="showNotification"></ClientEvents>
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="dtEnableEnd"
                                                        ControlToValidate="dtIsHomeDisplayEnd" ErrorMessage="<%$ OwR:HomeDisplayEndLessThanEqualEnableEnd %>"
                                                        Operator="LessThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <legend>
                                            <owc:OwR ID="HotOwR" runat="server" OwText="HotLabel"></owc:OwR>
                                        </legend>
                                        <table>
                                            <tr class="tdinFs">
                                                <td>
                                                    <owc:OwR ID="IsHotOwR2" runat="server" OwText="IsHotLabel"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="IsHotCb" Text="<%$ OwR:IsHot %>" Checked='<%# Bind("IsHot") %>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal4" runat="server" Text="<%$ OwR:FromDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHotBegin" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HotDisplayBegin") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToCompare="dtEnableBegin"
                                                        ControlToValidate="dtIsHotBegin" ErrorMessage="<%$ OwR:HotBeginGreaterThanEqualEnableBegin %>"
                                                        Operator="GreaterThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal5" runat="server" Text="<%$ OwR:ToDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHotEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HotDisplayEnd") %>'
                                                        MaxDate="12/31/9999 23:59:59" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator5" runat="server" ControlToCompare="dtEnableEnd"
                                                        ControlToValidate="dtIsHotEnd" ErrorMessage="<%$ OwR:HotEndLessThanEqualEnableEnd %>"
                                                        Operator="LessThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                                <td>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsDraftOwR" runat="server" OwText="IsDraftLabel" OwSuffix=":"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox ID="OwIsDraftCb" runat="server" Checked='<%# Bind("IsDraft") %>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Localize ID="Localize13" Text="<%$ OwR:SortOrder %>" runat="server"></asp:Localize>
                                                    :
                                                </td>
                                                <td>
                                                    <owc:OwTextBox SkinID="owTextBox" ID="txtSortOrder" runat="server" Width="100px"
                                                        Text='<%# Bind("SortOrder") %>' EmptyMessage="<%$ OwR: EnterSortOrder %>">
                                                    </owc:OwTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwSuffix=":"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox ID="IsDeletedCb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Localize ID="Localize1" runat="server" Text="<%$ OwR:IsApproved %>"></asp:Localize>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="cbApproved" Checked='<%# Bind("IsApproved") %>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfo" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="OwDetailCommonGroup2" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                            OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>'
                            OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>' OwBindWardLocalityValue='<%# Bind("WardID")%>'
                            OwBindPortalValue='<%# Bind("PortalID") %>' OwBindNetworkValue='<%# Bind("NetworkID") %>'
                            OwBindLanguageValue='<%# Bind("LanguageCode") %>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabel" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="TitleLabel" />
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="OwTextBox" ID="txtTitle" runat="server" Width="680px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Title") %>' LabelWidth="">
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="ThreadIconOwR" runat="server" OwText="ThreadIconLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="OwThreadIconCbb" runat="server" DataSourceID="OwThreadIconOds"
                                        DataTextField="Name" DataValueField="ThreadIconID" AppendDataBoundItems="True"
                                        SelectedValue='<%# Bind("ThreadIconID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwThreadIconOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwForumThreadIconsBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="networkID" Type="Int64" />
                                            <asp:Parameter Name="portalID" Type="Int64" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="CompanyOwR" runat="server" OwText="CompanyLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="CompanyCbb" runat="server" DataSourceID="OwCompanyOds"
                                        DataTextField="Name" DataValueField="CompanyID" AppendDataBoundItems="True" SelectedValue='<%# Bind("CompanyID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwCompanyOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwCompaniesBLL" 
                                        DataObjectTypeName="Micronet.OpenWeb.Entity.OwCompaniesEntity" 
                                        DeleteMethod="OwDelete" InsertMethod="OwInsert" UpdateMethod="OwUpdate">
                                        <SelectParameters>
                                            <asp:Parameter Name="parentID" Type="Int64" />
                                            <asp:Parameter Name="code" Type="String" />
                                            <asp:Parameter Name="isHomeDisplay" Type="Boolean" />
                                            <asp:Parameter Name="isHot" Type="Boolean" />
                                            <asp:Parameter Name="enableBegin" Type="DateTime" />
                                            <asp:Parameter Name="enableEnd" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="homeDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayBegin" Type="DateTime" />
                                            <asp:Parameter Name="hotDisplayEnd" Type="DateTime" />
                                            <asp:Parameter Name="userID" DbType="Guid" />
                                            <asp:Parameter Name="isApproved" Type="Boolean" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter DbType="Guid" Name="creatingUser" />
                                            <asp:Parameter DbType="Guid" Name="editingUser" />
                                            <asp:Parameter DbType="Guid" Name="deletingUser" />
                                            <asp:Parameter Name="languageCode" Type="String" />
                                            <asp:Parameter Name="isEnabled" Type="Boolean" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="ForumOwR" runat="server" OwText="ForumLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="OwForumCbb" runat="server" DataSourceID="OwForumOds"
                                        DataTextField="Title" DataValueField="ForumID" AppendDataBoundItems="True" SelectedValue='<%# Bind("ForumID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwForumOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetByDynamic" 
                                        TypeName="Micronet.OpenWeb.Com.BLL.OwForumsBLL" 
                                        DataObjectTypeName="Micronet.OpenWeb.Entity.OwForumsEntity" 
                                        DeleteMethod="OwDelete" InsertMethod="OwInsert" UpdateMethod="OwUpdate">
                                        <SelectParameters>
                                            <asp:Parameter DbType="Guid" Name="userID" />
                                            <asp:Parameter DefaultValue="false" Name="isDeleted" Type="Boolean" />
                                            <asp:Parameter Name="continentID" Type="Int64" />
                                            <asp:Parameter Name="countryID" Type="Int64" />
                                            <asp:Parameter Name="provinceID" Type="Int64" />
                                            <asp:Parameter Name="districtID" Type="Int64" />
                                            <asp:Parameter Name="wardID" Type="Int64" />
                                            <asp:Parameter Name="categoryID" Type="Int64" />
                                            <asp:Parameter Name="companyID" Type="Int64" />
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="ForumCatagoryOwR" runat="server" OwText="ForumCatagoryLabel" />
                                </td>
                                <td>
                                    <owc:OwComboBox SkinID="owCombobox" ID="OwForumCatagoryCbb" runat="server" DataSourceID="OwForumCatagoryOds"
                                        DataTextField="Name" DataValueField="ForumCategoryID" AppendDataBoundItems="True"
                                        SelectedValue='<%# Bind("ForumCategoryID") %>'>
                                    </owc:OwComboBox>
                                    <owc:OwOds ID="OwForumCatagoryOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                        OwBLLClassName="" OwSelectMethod="" SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwForumCategoriesBLL">
                                        <SelectParameters>
                                            <asp:Parameter Name="sortClause" Type="String" />
                                            <asp:Parameter Name="sortDirection" Type="String" />
                                            <asp:Parameter Name="startRowIndex" Type="Int32" />
                                            <asp:Parameter Name="maximumRows" Type="Int32" />
                                        </SelectParameters>
                                    </owc:OwOds>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="DetailOwR" runat="server" OwText="DetailLabel" OwSuffix=":" />
                                </td>
                                <td>
                                    <owc:OwEditor SkinID="OwEditorFull" ID="txtDetail" runat="server" OwStoragePlace="Common"
                                        Style="position: relative; top: 0px; left: 0px;" Content='<%# Bind("Detail") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="TagsOwR" runat="server" OwText="TagsLabel" OwSuffix=":" />
                                </td>
                                <td>
                                    <owc:OwEditor SkinID="OwEditorBrief" ID="txtTags" runat="server" OwStoragePlace="Common"
                                        Style="position: relative;" Content='<%# Bind("Tags") %>'>
                                    </owc:OwEditor>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span class="titleLegen">
                        <asp:Localize ID="Localize23" Text="<%$ OwR: ExtInfo %>" runat="server"></asp:Localize>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="CreatingUser" runat="server" OwText="CreatingUser" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtcreatingUser" runat="server" Enabled="False"
                                        Width="200px" OwUsedForEdit="False" Text='<%# Bind("CreatingUser") %>'>
                                    </owc:OwTextBox>
                                    <owc:OwTextBox SkinID="owTextBox"
                                        ID="CreatingUserLabel" Visible="false" runat="server" Text='<%# Bind("CreatingUser") %>' />
                                </td>
                                <td>
                                    <asp:Localize ID="Localize6" runat="server" Text="<%$ OwR:CreatedDate %>"></asp:Localize>
                                    &nbsp;:
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtCreatedDate" runat="server" Enabled="False"
                                        Width="200px" OwUsedForEdit="False" Text='<%# Bind("DateTimeCreated") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="leftcolumn">
                                    <asp:Localize ID="Localize12" Text="<%$ OwR:LastEditingUser %>" runat="server"></asp:Localize>
                                    :
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtlastEditingUser" runat="server" Enabled="False"
                                        Width="200px" OwUsedForEdit="False" Text='<%#Eval("EditingUser")!=null? (Membership.GetUser(Eval("EditingUser"))!=null?Membership.GetUser(Eval("EditingUser")).UserName:"n/a"):"n/a"   %>'>
                                    </owc:OwTextBox>
                                    <owc:OwTextBox SkinID="owTextBox" OwDefaultValue='<%# Eval("EditingUser")!=null? (Membership.GetUser(Eval("EditingUser"))!=null?Membership.GetUser(Eval("EditingUser")).ProviderUserKey:""):""    %>'
                                        ID="EditingUserLabel" Visible="false" runat="server" Text='<%# Bind("EditingUser") %>' />
                                </td>
                                <td>
                                    <asp:Localize ID="Localize14" runat="server" Text="<%$ OwR:LastEditedDate %>"></asp:Localize>
                                    :
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtlastEditedDate" runat="server" Enabled="False"
                                        Width="200px" OwDefaultValue='<%$ Ow: DateTime.Now %>' OwUsedForEdit="False"
                                        Text='<%# Bind("DateTimeEdited") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                            <%--<tr>
                                <td class="leftcolumn">
                                    <asp:Localize ID="Localize16" Text="<%$ OwR:DeletingUser %>" runat="server"></asp:Localize>
                                    :
                                </td>
                                <td colspan="2">
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtdeletingUser" runat="server" Enabled="False"
                                        Width="200px" OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("DeletingUser") %>'>
                                    </owc:OwTextBox>
                                </td>
                                <td>
                                    <asp:Localize ID="Localize17" runat="server" Text="<%$ OwR:DeletedDate %>"></asp:Localize>
                                    :
                                </td>
                                <td colspan="2">
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtdeletedDate" runat="server" Enabled="False"
                                        Width="200px" OwDefaultValue="" OwUsedForEdit="False" Text='<%# Bind("DateTimeDeleted") %>'>
                                    </owc:OwTextBox>
                                </td>
                            </tr>--%>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span class="titleLegen">
                        <asp:Localize ID="Localize15" Text="<%$ OwR:OptionLabel %>" runat="server"></asp:Localize>
                    </span></legend>
                    <div class="contentLegen">
                        <table width="100%">
                            <tr>
                                <td>
                                    <fieldset class="fsStandard">
                                        <legend>
                                            <owc:OwR ID="EnableOwR" runat="server" OwText="EnableLabel"></owc:OwR>
                                        </legend>
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsEnabledOwR" runat="server" OwText="IsEnabledLabel"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="IsEnabledCb" Checked='<%# Bind("IsEnabled") %>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="FromDateOwR" runat="server" OwText="FromDate" OwSuffix=":" />
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtEnableBegin" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("EnableBegin") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="ToDateOwR" runat="server" OwText="ToDate" OwSuffix=":" />
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtEnableEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("EnableEnd") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                            UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="dtEnableBegin"
                                                        ControlToValidate="dtEnableEnd" ErrorMessage="<%$ OwR:EnableEndGreaterThanEnableBegin %>"
                                                        Operator="GreaterThan">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <legend>
                                            <owc:OwR ID="HomeDisplayOwR" runat="server" OwText="HomeDisplayLabel"></owc:OwR>
                                        </legend>
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsHomeDisplayOwR" runat="server" OwText="IsHomeDisplayLabel"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="cbIsHomeDisplay" Checked='<%# Bind("IsHomeDisplay") %>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal2" runat="server" Text="<%$ OwR:FromDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHomeDisplayBegin" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HomeDisplayBegin") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar ClientEvents-OnDateSelected="showNotification" UseRowHeadersAsSelectors="False"
                                                            UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator3" runat="server" ControlToCompare="dtEnableBegin"
                                                        ControlToValidate="dtIsHomeDisplayBegin" ErrorMessage="<%$ OwR:HomeDisplayBeginGreaterThanEqualEnableBegin %>"
                                                        Operator="GreaterThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal3" runat="server" Text="<%$ OwR:ToDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHomeDisplayEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HomeDisplayEnd") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                        OwUsedForEdit="False">
                                                        <ClientEvents OnDateSelected="showNotification"></ClientEvents>
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="dtEnableEnd"
                                                        ControlToValidate="dtIsHomeDisplayEnd" ErrorMessage="<%$ OwR:HomeDisplayEndLessThanEqualEnableEnd %>"
                                                        Operator="LessThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <legend>
                                            <owc:OwR ID="HotOwR" runat="server" OwText="HotLabel"></owc:OwR>
                                        </legend>
                                        <table>
                                            <tr class="tdinFs">
                                                <td>
                                                    <owc:OwR ID="IsHotOwR2" runat="server" OwText="IsHotLabel"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="IsHotCb" Text="<%$ OwR:IsHot %>" Checked='<%# Bind("IsHot") %>' />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal4" runat="server" Text="<%$ OwR:FromDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHotBegin" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HotDisplayBegin") %>'
                                                        MaxDate="12/31/9999 23:59:59" MinDate="" OwDefaultValue='<%$ Ow: DateTime.Now %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator4" runat="server" ControlToCompare="dtEnableBegin"
                                                        ControlToValidate="dtIsHotBegin" ErrorMessage="<%$ OwR:HotBeginGreaterThanEqualEnableBegin %>"
                                                        Operator="GreaterThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Literal ID="Literal5" runat="server" Text="<%$ OwR:ToDate%>" />:
                                                </td>
                                                <td>
                                                    <owc:OwDateTimePicker SkinID="owDateTimePickerDetailAdmin" ClientEvents-OnDateSelected="showNotification"
                                                        ID="dtIsHotEnd" runat="server" Culture="en-US" DbSelectedDate='<%# Bind("HotDisplayEnd") %>'
                                                        MaxDate="12/31/9999 23:59:59" OwDefaultValue='<%$ Ow:OwPC.PCEx.DateTimeMax2 %>'
                                                        OwUsedForEdit="False">
                                                        <TimeView CellSpacing="-1">
                                                        </TimeView>
                                                        <TimePopupButton ImageUrl="" HoverImageUrl=""></TimePopupButton>
                                                        <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x">
                                                        </Calendar>
                                                        <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
                                                    </owc:OwDateTimePicker>
                                                    <asp:CompareValidator ID="CompareValidator5" runat="server" ControlToCompare="dtEnableEnd"
                                                        ControlToValidate="dtIsHotEnd" ErrorMessage="<%$ OwR:HotEndLessThanEqualEnableEnd %>"
                                                        Operator="LessThanEqual">*</asp:CompareValidator>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                                <td>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsDraftOwR" runat="server" OwText="IsDraftLabel" OwSuffix=":"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox ID="OwIsDraftCb" runat="server" Checked='<%# Bind("IsDraft") %>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Localize ID="Localize13" Text="<%$ OwR:SortOrder %>" runat="server"></asp:Localize>
                                                    :
                                                </td>
                                                <td>
                                                    <owc:OwTextBox SkinID="owTextBox" ID="txtSortOrder" runat="server" Width="100px"
                                                        Text='<%# Bind("SortOrder") %>' EmptyMessage="<%$ OwR: EnterSortOrder %>">
                                                    </owc:OwTextBox>
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <owc:OwR ID="IsDeletedOwR" runat="server" OwText="IsDeletedLabel" OwSuffix=":"></owc:OwR>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox ID="IsDeletedCb" runat="server" Checked='<%# Bind("IsDeleted") %>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                    <fieldset class="fsStandard">
                                        <table>
                                            <tr>
                                                <td class="tdinFs">
                                                    <asp:Localize ID="Localize1" runat="server" Text="<%$ OwR:IsApproved %>"></asp:Localize>
                                                </td>
                                                <td>
                                                    <owc:OwCheckBox runat="server" ID="cbApproved" Checked='<%# Bind("IsApproved") %>' />
                                                </td>
                                            </tr>
                                        </table>
                                    </fieldset>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="OwForumThreadOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwForumThreadsEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwForumThreadsBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="ForumThreadID" QueryStringField="<%$ Ow:OwConstants.QueryString.ID %>" />
    </SelectParameters>
</owc:OwObjectDataSource>
